﻿@model List<Paper>

<!DOCTYPE html>
<html lang="en">

<head>

    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <meta name="description" content="">
    <meta name="author" content="">

    <title>添加考试</title>

    <link href="vendor/fontawesome-free/css/all.min.css" rel="stylesheet" type="text/css">
    <link href="https://fonts.googleapis.com/css?family=Nunito:200,200i,300,300i,400,400i,600,600i,700,700i,800,800i,900,900i"
          rel="stylesheet">
    <link href="~/css/sb-admin-2.min.css" rel="stylesheet" />

</head>

<body class="bg-gradient-primary">

    <div class="container">

        <div class="card o-hidden border-0 shadow-lg my-5">
            <div class="card-body p-0">
                <div class="row">
                    <div class="col-lg-12">
                        <div class="p-5">
                            <div class="text-center">
                                <h1 class="h4 text-gray-900 mb-4">创建一个新的考试!</h1>
                            </div>

                            <form class="text" asp-controller="ExamPlan" asp-action="AddExamSumbit" method="post">
                                <div class="form-group">
                                    <input type="text" class="form-control form-control-text" id="exam_plan_name" name="exam_plan_name" maxlength="50"
                                           placeholder="考试名称" required>
                                </div>
                                <div class="form-group">
                                    <input type="text" class="form-control form-control-text" id="exam_plan_desc" name="exam_plan_desc" maxlength="50"
                                           placeholder="考试描述" required>
                                </div>
                                <div class="form-group">
                                    <input type="text" class="form-control form-control-text" id="teacher_id" name="teacher_id" maxlength="30"
                                           placeholder="负责教师" required>
                                </div>
                                <div class="form-group">
                                    <input type="datetime-local" class="form-control form-control-text" id="begin_time" name="begin_time" maxlength="30"
                                           placeholder="开始时间" required>
                                </div>
                                <div class="form-group">
                                    <input type="datetime-local" class="form-control form-control-text" id="end_time" name="end_time" maxlength="30"
                                           placeholder="结束时间" required>
                                </div>
                                <div class="form-group">
                                        <select class="form-control" name="paper_id" required>
                                        <option value="">选择本场考试的试卷</option>
                                        @foreach (var s in Model)
                                        {
                                            <option value="@s.paper_id">@s.paper_name</option>
                                        }
                                    </select>
                                </div>
                                <input type="submit" class="btn btn-primary  btn-block" value="创建" />
                            </form>
                            <hr>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <script src="vendor/jquery/jquery.min.js"></script>
    <script src="vendor/bootstrap/js/bootstrap.bundle.min.js"></script>
    <script src="vendor/jquery-easing/jquery.easing.min.js"></script>
    <script src="js/sb-admin-2.min.js"></script>

</body>

</html>
